/*
 * @Author: 周云海 2779039093@qq.com
 * @Date: 2023-03-19 15:17:23
 * @LastEditors: 刘鑫 12550916+ChesShire@user.noreply.gitee.com
 * @LastEditTime: 2023-03-21 13:50:39
 * @FilePath: \项目克隆\mobile-application-development\vue-project\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router'
import myApp from '../views/myApp.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: myApp
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/shoppingCar',
      name: 'shoppingCar',
      component: () => import('../views/shoppingCarView.vue')
    },
    
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/LoginView.vue')
    },

    {
      path: '/info',
      name: 'info',
      component: () => import('../views/InfoView.vue')
    },
    {
      path: '/sreach',
      name: 'sreach',
      component: () => import('../views/Sreach.vue')
    },
    {
      path:'/dingdan',
      name:'dingdan',
      component: () => import('../views/DingdanView.vue')
    },
    {
      path:'/meidi',
      name:'meidi',
      component: () => import('../views/meidiView.vue')
    },
    {
      path:'/xiyiji',
        name:'xiyiji',
        component: () => import('../views/xiyijiView.vue')
      },
      {
        path:'/bingxian',
          name:'bingxian',
          component: () => import('../views/bingxianView.vue')
        },
        {
          path:'/cufang',
            name:'cufang',
            component: () => import('../views/cufangView.vue')
          }
  ]
})

export default router
